﻿namespace DM4
{   
    public class MailAccount
    {
        public int Id = DM4Consts.DefaultNULLId;
        public string Mail = "";

        public string SendServer = "";
        public string SendPort = "";
        public string SendUser = "";
        public string SendPassword = "";
        public bool SendUseSSL;

        public string ReceiveServer = "";
        public string ReceivePort = "";
        public string ReceiveUser = "";
        public string ReceivePassword = "";
        public bool ReceiveUseSSL;
    }  

    public class MailSendTemplate
    {
        public int Id = DM4Consts.DefaultNULLId;
        public string Name = "";
        public string Subject = "";
        public string Body = "";
    }

    public class MailSender
    {
        public int Id = DM4Consts.DefaultNULLId;
        public string Mail = "";
    }

    public class Letter
    {
        public int Id = DM4Consts.DefaultNULLId;
        public int SenderId = DM4Consts.DefaultNULLId;
        public string Description = "";
    }

    public class MailRule
    {
        public int Id = DM4Consts.DefaultNULLId;
        public string Rule = "";
        public string RuleName = "";
        public MailRuleType RuleType = MailRuleType.Empty;
    }

    public class MailLettersRules
    {
        public int Id = DM4Consts.DefaultNULLId;
        public int LetterId = DM4Consts.DefaultNULLId;
        public int RuleId = DM4Consts.DefaultNULLId;
    }
    
}
